package ${package.Service};

import ${package.Entity}.${entity};
import ${superServiceClassPackage};

<#if cfg.customPort == 'Y'>
import java.util.List;
</#if>
<#if cfg.customTable == 'Y'>
import org.springframework.web.multipart.MultipartFile;
</#if>

/**
 * ${table.comment!}
 *
 * @author ${author}
 * @since ${date}
 */
<#if kotlin>
interface ${table.serviceName} : ${superServiceClass}<${entity}>
<#else>
public interface ${table.serviceName} extends ${superServiceClass}<${entity}> {

<#if cfg.customPort == 'Y'>
    /**
     * ${table.comment!}列表
     */
    public List<${entity}> get${entity}List(${entity} ${'${entity}' ? uncap_first});

    /**
     * ${table.comment!}详情
     */
    public ${entity} get${entity}ById(Long id);

    /**
     * ${table.comment!}新增
     */
    public int save${entity}(${entity} ${'${entity}' ? uncap_first});

    /**
     * ${table.comment!}修改
     */
    public int edit${entity}(${entity} ${'${entity}' ? uncap_first});

    /**
     * ${table.comment!}删除
     */
    public int removeIds(List<Long> ids);
</#if>

<#if cfg.customTable == 'Y'>
    /**
     * ${table.comment!}导入
     */
    public boolean importData(MultipartFile file);

    /**
     * ${table.comment!}导出
     */
    public void export(${entity} ${'${entity}' ? uncap_first});
</#if>

}
</#if>
